import mediarequest from '@/utils/media-request'

export function getSeries(data) {
    return mediarequest({
        url: '/media/seriess',
        method: 'get',
        params: data
    })
}

export function getSerierss (data) {
    return mediarequest({
        url: '/console/media/seriess',
        method: 'get',
        params: data
    })
}

export function getSeriesInfo(data) {
    return mediarequest({
        url: '/console/media/series',
        method: 'get',
        params: data
    })
}

export function createSeries(data) {
    return mediarequest({
        url: '/console/media/series',
        method: 'post',
        data: data
    })
}
export function updateSeries(data) {
    return mediarequest({
        url: '/console/media/series',
        method: 'put',
        data: data
    })
}

export function patchSeries(data) {
    return mediarequest({
        url: '/console/media/series',
        method: 'patch',
        data: data
    })
}

export function deleteSeries(data) {
    return mediarequest({
        url: '/console/media/series',
        method: 'delete',
        data: data
    })
}

export function seriesOnOff(data) {
    return mediarequest({
        url: '/console/media/series/onoff',
        method: 'post',
        data: data
    })
}

export function quickCreateSeries(data) {
    return mediarequest({
        url: '/console/media/seriess',
        method: 'post',
        data
    })
}

export function resortSeries(data) {
    return mediarequest({
        url: '/console/media/series__sequence',
        method: 'patch',
        data
    })
}

export function seriesToTop(data) {
    return mediarequest({
        url: '/console/media/series__topno',
        method: 'patch',
        data
    })
}

export function seriesBatchSort(data) {
    return mediarequest({
        url: '/console/media/seriess/sequence',
        method: 'patch',
        data
    })
}
